package People;
import java.io.Serializable;

public class people implements Serializable {
    public int id;
    public String name;
    public String gender;
    private String major1;
    protected String major2;
    String Major3;
    public int getID() {
        return id;
    }
    public void setID(int id) {
        this.id=id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name=name;
    }
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender=gender;
    }
    private String getMajor1(){
        return major1;
    }
    protected String getMajor2(){
        return major2;
    }

    public String toString() {
        return "学号:" + this.id + " 姓名:" + this.name + " 性别:" + this.gender;
    }
}